农民影视[优].js 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. var rule = {
  2. title: '农民影视',
  3. host: 'https://www.wwgz.cn/',
  4. /*
  5. hostJs:`print(HOST);let html=request(HOST,{headers:{"User-Agent":MOBILE_UA}});
  6. let src = jsp.pdfh(html,"body&&a:eq(1)&&href")||jsp.pdfh(html,"body&&a:eq(1)&&Text");
  7. if(!src.startsWith('http')){src='https://'+src};print("抓到主页:"+src);HOST=src`,
  8. */
  9. url: '/vod-list-id-fyfilter.html',
  10. filterable: 1,//是否启用分类筛选,
  11. filter_url: '{{fl.cateId}}-pg-fypage-order--by-{{fl.by or "time"}}-class-0-year-{{fl.year}}-letter-{{fl.letter}}-area-{{fl.area}}-lang-',
  12. filter: 'H4sIAAAAAAAAA+2Z304TQRyF32WvuZjZtjNT3sBnMFxUbCJRMQE0IYRELQgtCmqkFSz+iZaWiFICIbIIfZnulr6FW7o756CJMeFKMnf9ndOdnW9osl+WOU96ozfnvLvFWW/UGy/MFG/c9ka8ycL9Yjz39k/C9yvx/Khw72Hx4ouTcRwutvql1iCOB+nNjyRxpdU9rffKS0mTQ1Oth+UmGmWb3vJ+VFpEo9E0X4XHJ2iMbaInL6PHVTR53KfcvLSaFLho+W03KFOFfUelSvR0kypsL2wsXdqEjPc3NiiH51WYKhZwWmG9HT4P/n5aWPlLs7/xLEmTIe362xvRj72kSwZ73Vo7Oj5LrxsO9sjOVsN3p0mXDHbNDzvoksEeQK0R1XeTLhlsd9DGdclgu2o7rHwMtz6ltZ3tXXd2o63GeaPTDTbTe3NkqV60w2A7pRoOaXe+so8dJAN2t867W+cu3kq00omPNl3WznblRqe39q1X3kgXt3P6jW5noXdai6rpHwOzvcviUfi9lN5iOPBPZLZYmKKfyPFh9+TzP/5EfOFnkuziI+U+cp9ziVxyLpALymXe5jLPuUFuONfINecKueI8hzzHeRZ5lnPwSuaV4JXMK8ErmVeCVzKvAK9gXgFewbwCvIJ5BXgF8wrwCuYV4BXMK8ArmFeAVzCvAK9gXgFeAV6Zz6e8Fx8pN8gN5xq55lwhV5znkOc4zyLPcp5BnuHcR+5zLpFLzgVy5jXgNcxrwGuY14DXMK8Br2FeA17DvAa8hnkNeA3zGvAa5jXgNcxrwGuYV4NXM68Gr2ZeDV7NvBq8mnk1eDXzavBq5tXg1cyrwauZV4NXM68Gr2ZeBV7FvAq8inkVeBXzKvAq5lXgVcyrwKuYV4FXMa8Cr2JeBV7FvAq88Ud+fNyaxcMjWn0dBmt/PDyi2lG/dpgsMDMRf9U+vYIgar9JmjsTM9N48u0thMupfUyPP5gqDu46NuL5V7RB0MaP4m7QjI0sRUMV+8zAXA7aaYWzi+1jICe4Cscd7TYHToMq51zMuZhzMedizsWcizkXcy52zVwsQy7m7MbZjbMbZzfObpzdOLtxdvP/2032im+acDphpRX9/EovhsxvFf3/Lu/eGTmrclblrMpZlbMqZ1XOqq6ZVfnKvTRyeuP0xumN0xunN05vnN5cI72Z/wVNTNQhri4AAA==',
  13. filter_def: {
  14. 1: {cateId: '1'},
  15. 2: {cateId: '2'},
  16. 3: {cateId: '3'},
  17. 4: {cateId: '4'},
  18. 26: {cateId: '26'}
  19. },
  20. searchUrl: '/index.php?m=vod-search&wd=**',
  21. searchable: 2,//是否启用全局搜索,
  22. searchNoPage: 1,//是否关闭搜索分页,
  23. headers: {//网站的请求头,完整支持所有的,常带ua和cookies
  24. 'User-Agent': 'MOBILE_UA',
  25. },
  26. // class_parse: '#topnav li:lt(4);a&&Text;a&&href;.*/(.*?).html',
  27. class_name: '电影&连续剧&综艺&动漫&短剧',//静态分类名称拼接
  28. class_url: '1&2&3&4&26',//静态分类标识拼接
  29. play_parse: true,
  30. lazy: $js.toString(() => {
  31. pdfh = jsp.pdfh;
  32. pdfa = jsp.pdfa;
  33. let html = request(input);
  34. let mac_url = html.match(/mac_url='(.*?)';/)[1];
  35. let mac_from = html.match(/mac_from='(.*?)'/)[1];
  36. log(mac_from);
  37. let index = parseInt(input.match(/num-(\d+)/)[1]) - 1;
  38. let playUrls = mac_url.split('#');
  39. let playUrl = playUrls[index].split('$')[1];
  40. log(playUrl);
  41. let jx_js_url = 'https://api.cnmcom.com/nmapi/nmbof/' + mac_from + '.js';
  42. html = request(jx_js_url);
  43. let jx_php_url = html.match(/src="(.*?)'/)[1];
  44. if (mac_from.includes('m3u8')) {
  45. html = request(jx_php_url + playUrl);
  46. let realUrl = html.match(/url='(.*?)'/)[1];
  47. if (realUrl) {
  48. input = {parse: 0, url: realUrl};
  49. }
  50. } else {
  51. html = request(jx_php_url + playUrl, {headers: {'Referer': 'https://nmvod.cnmcom.com/'}});
  52. let line1 = html.match(/case\s+'线路①':\s*src\s*=\s*'(.*?)'/)[1];
  53. html = request(line1 + playUrl, {headers: {'Referer': jx_php_url + playUrl}});
  54. let realUrl = html.match(/url.*?'(.*?)'/)[1];
  55. if (realUrl) {
  56. input = {parse: 0, url: realUrl};
  57. }
  58. }
  59. }),
  60. limit: 6,
  61. 推荐: '.globalPicList .resize_list;*;img&&data-src;*;*',
  62. 一级: '.globalPicList li;.sTit&&Text;img&&src;.sBottom--em&&Text;a&&href',
  63. 二级: {
  64. "title": ".title&&Text;.type-title&&Text",
  65. "img": ".page-hd&&img&&src",
  66. "desc": ".desc_item:eq(3)&&Text;.desc_item:eq(4)--span&&Text;;.desc_item:eq(1)--span&&Text;.desc_item:eq(2)--span&&Text",
  67. "content": ".detail-con p&&Text",
  68. "tabs": ".hd li",
  69. "lists": ".numList:eq(#id) li"
  70. },
  71. 搜索: '.ulPicTxt.clearfix li;*;img&&data-src;.sDes:eq(1)&&Text;*',
  72. 搜索验证标识: '系统安全验证',
  73. }